package cn.topcodes.tcsf.cms.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import com.sun.org.apache.xpath.internal.operations.Bool;
import lombok.Data;

import javax.persistence.Table;

/**
 * Production
 *
 * @author Yvan
 * @date 2018-02-09 10:46:47
 */
@Data
@Table(name = "t_cms_production")
public class Production extends IdEntity {

    public static final String FIELD_NAME = "name";

    public static final String FIELD_CATALOG_ID = "catalogId";

    public static final String FIELD_PARAMS = "params";

    public static final String FIELD_DESCRIPTION = "description";

    public static final String FIELD_KEYWORD = "keyword";

    public static final String FIELD_PICTURES = "pictures";

    public static final String FIELD_SHOW = "isSwhow";

    public static final String FIELD_TOP = "isTop";

    public static final String FILE_PATH = "production/";


    /**
     * 名称
     */
    private String name;

    /**
     * 分类
     */
    private Long catalogId;

    /**
     * 参数 共有十个参数 分别用下划线隔开 1 产品编号 2 产品价格 3 产品销量 4 类型 5 规格 6 材质 7 颜色 8 品牌 9 型号 10 库存
     */
    private String params;

    /**
     * 详情
     */
    private String description;

    /**
     * 关键词
     */
    private String keyword;

    /**
     * 图片
     */
    private String pictures;

    /**
     * 是否上架
     */
    private Boolean isShow;

    /**
     * 是否置顶
     */
    private Boolean isTop;

}